package com.kxf.androidtestdemo.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.kxf.androidtestdemo.R;

public class ServiceActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_service);
    }

    public void onClickBack(View view) {

        finish();
    }

    @Override
    public void finish() {
        Intent intent = new Intent();
        intent.putExtra("code", 1024);
        intent.putExtra("resultStr", "18721314176");
        setResult(RESULT_OK, intent);
        super.finish();
    }
}